const { createProxyMiddleware } = require('http-proxy-middleware');
import {BASE_URL, TIMEOUT} from "./config";
module.exports = function (app) {
  app.use(
    createProxyMiddleware("/api", {
      target: BASE_URL,
      secure: false,
      changeOrigin: true,
      pathRewrite: {
        "^/api": "/api"
      }
    })
  )
}